import React from 'react';
import ReactDOM from 'react-dom';

//类组件写法: 引入高阶函数
import infoHOC from './service/infoHOC';

//类组件写法: 引入app组件
import AppByClass from './appByClass';

//类组件写法: 包装App组件具备高阶函数里面的逻辑功能
const AppHOC = infoHOC(AppByClass);

//类组件写法: 渲染app
ReactDOM.render(<AppHOC />, document.getElementById('app'));

//--------------------------------------------

// //自定义Hook组件写法：引入app组件
// import AppByHook from './appByHook';

// //自定义Hook组件写法：渲染app
// ReactDOM.render(<AppByHook />, document.getElementById('app'));
